#define _CRT_SECURE_NO_WARNINGS 1

#include"Myset.h"
#include<set>

int main()
{
	bit::set<int> s1;
	int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	//int arr[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	//int arr[] = { 4, 2, 6,5,7 ,1, 3 };

	for (auto e : arr)
	{
		s1.insert(e);
	}

	auto it1 = s1.begin();
	while (it1 != s1.end())
	{
		cout << it1->_kv << endl;
		//cout << *it1 << endl;
		++it1;
	}


	//auto it1 = s1.end();
	//while (it1 != s1.begin())
	//{
	//	--it1;
	//	cout << *it1 << endl;
	//}

	//for (auto e : arr)
	//{
	//	it1 = s1.find(e);
	//	cout << *it1 << endl;
	//	s1.erase(e);
	//}

	return 0;
}

